// 表单字段配置
export const formColumns: any = [
    {
        prop: 'orderId',
        label: '订单ID',
        isEdit: false, // 是否可编辑,组件属性是 disabled， true 为不可编辑，false 为可编辑
        isShow: false, // 是否显示，组件属性是 v-show， false 为隐藏，true 为显示
    },
    {
        prop: 'userId',
        label: '用户ID',
        isEdit: false,
        isShow: false,
        value: '',
    },
    {
        prop: 'userName',
        label: '用户名称',
        type: 'input',
        isEdit: true,
        isShow: true,
        width: 150,
        value: '',
    },
    {
        prop: 'orderTime',
        label: '下单时间',
        type: 'datetime',
        isEdit: true,
        isShow: true,
        width: 150,
        value: '',
    },
    {
        prop: 'totalAmount',
        label: '总金额',
        type: 'number',
        isEdit: true,
        isShow: true,
        width: 150,
        value: '',
        min: 0.01,
        max: 9999999,
    },
    {
        prop: 'status',
        label: '状态',
        type: 'select',
        width: 150,
        isEdit: false,
        isShow: true,
        value: '',
        options: [
            { label: '已取消', value: 0 },
            { label: '待发货', value: 1 },
            { label: '配送中', value: 2 },
            { label: '待收货', value: 3 },
            { label: '已完成', value: 4 }
        ],
    },
    {
        prop: 'paymentMethod',
        label: '支付方式',
        type: 'select',
        width: 150,
        isEdit: true,
        isShow: true,
        value: '',
        options: [
            { label: '支付宝', value: 'alipay' },
            { label: '微信支付', value: 'wechat' },
            { label: '银行卡', value: 'bankCard' }
        ],
    },
    {
        prop: 'deliveryAddress',
        label: '收货地址',
        type: 'input',
        isEdit: true,
        isShow: true,
        width: 150,
        value: '',
    },
]